<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--框架必需start-->
<script type="text/javascript" src="/staff_vehicle/js/jquery-1.4.js"></script>
<script type="text/javascript" src="/staff_vehicle/js/framework.js"></script>
<link href="/staff_vehicle/css/import_basic.css" rel="stylesheet" type="text/css"/>
<link  rel="stylesheet" type="text/css" id="skin" prePath="/staff_vehicle/"/>
<!--框架必需end-->

<!--截取文字start-->
<script type="text/javascript" src="/staff_vehicle/js/text/text-overflow.js"></script>
<!--截取文字end-->

<script>



function skip_agree(idaskForleave){
	location.href="dealAskForLeaveAction!agree?idaskForleave="+idaskForleave;
}

function skip_decline(idaskForleave){
	top.Dialog.confirm("确定要拒绝吗",function(){window.location="dealAskForLeaveAction!disAgree?idaskForleave="+idaskForleave});
}

</script>
</head>
<body>

<div id="scrollContent" class="border_gray">
	<table class="tableStyle">
		<tr>
			<th width="10%">姓名</th>
			<th width="10%">员工编号</th>
			<th width="10%">家庭住址</th>
			<th width="10%">联系电话</th>
			<th width="10%">申请离开时间</th>
			<th width="10%">预计返回时间</th>
			<th width="19%">请假原因</th>
			<th width="11%">操作</th>
		</tr>

	<s:iterator value="askForLeaveMDataList" status="status">
		             <tr>
		                <td><s:property value="inferior.lastName" /><s:property value="inferior.firstName" />  </td>
                        <td><s:property value="inferior.staffId " /></td>
                        <td><s:property value="inferior.address" /></td>
                        <td><s:property value="inferior.staffTel" /></td>
                        <td><s:date name="askForleave.aflDate" format="yyyy-MM-dd HH:mm:ss"/></td>
                        <td><s:date name="askForleave.backDate" format="yyyy-MM-dd HH:mm:ss"/></td>
                        <td><s:property value="askForleave.reason" /></td>
                        <td><input type="button" value="同意" onclick="skip_agree('${askForleave.idaskForleave}')"/>
                        <input type="button" value="拒绝" onclick="skip_decline('${askForleave.idaskForleave}')"/></td>
                    </tr>
         </s:iterator>
	</table>
</div>


<div style="height:35px;">
	<div class="float_left padding5">

	</div>
	<div class="float_right padding5 paging">
		<div class="float_left padding_top4">
		<span class="paging_disabled"><a href="javascript:;">上一页</a></span>
		<span class="paging_current"><a href="javascript:;">1</a></span>
		<span><a href="javascript:;">2</a></span>
		<span><a href="javascript:;">3</a></span>
		<span><a href="javascript:;">4</a></span>
		<span><a href="javascript:;">5</a></span>
		<span>...</span>
		<span><a href="javascript:;">20</a></span>
		<span><a href="javascript:;">下一页</a></span>&nbsp;每页
		</div>
		<div class="float_left"><select autoWidth="true"><option>50</option><option>100</option><option>150</option></select></div>
		<div class="float_left padding_top4">条记录</div>
		<div class="clear"></div>
	</div>
	<div class="clear"></div>
</div>

</body>
</html>